package cn.vcjf.weapp.api.user.entity;

import cn.vcjf.weapp.common.web.PageModel;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigDecimal;

/**
 * <p>
    * 
    * </p>
 *
 * @author zhengzihang
 * @since 2018-09-25
 */
@TableName("vc_user_wallet")
public class UserWallet extends PageModel<UserWallet> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer userId;
    /**
     * 利润金额
     */
    @TableField(exist = false)
    private BigDecimal profit;
    /**
     * 提现金额
     */
    @TableField(exist = false)
    private BigDecimal cashMoney;

    /**
     * 提现总金额
     */
    private BigDecimal totalProfit;

    /**
     * 可提现金额
     */
    private BigDecimal surplusProfit;

    /**
     * 已提现金额
     */
    private BigDecimal cashedMoney;

    /**
     * 最小提现金额
     */
    private BigDecimal minCash;

    /**
     * 最大提现金额
     */
    private BigDecimal maxCash;

    /**
     * 钱包状态
     */
    private Integer walletStatus;

    /**
     * 提现原因
     */
    private String cashReason;

    private String updatUser;

    private String delFlag;

    public BigDecimal getCashMoney() {
        return cashMoney;
    }

    public void setCashMoney(BigDecimal cashMoney) {
        this.cashMoney = cashMoney;
    }

    public BigDecimal getProfit() {
        return profit;
    }

    public void setProfit(BigDecimal profit) {
        this.profit = profit;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public BigDecimal getTotalProfit() {
        return totalProfit;
    }

    public void setTotalProfit(BigDecimal totalProfit) {
        this.totalProfit = totalProfit;
    }
    public BigDecimal getSurplusProfit() {
        return surplusProfit;
    }

    public void setSurplusProfit(BigDecimal surplusProfit) {
        this.surplusProfit = surplusProfit;
    }
    public BigDecimal getCashedMoney() {
        return cashedMoney;
    }

    public void setCashedMoney(BigDecimal cashedMoney) {
        this.cashedMoney = cashedMoney;
    }
    public BigDecimal getMinCash() {
        return minCash;
    }

    public void setMinCash(BigDecimal minCash) {
        this.minCash = minCash;
    }
    public BigDecimal getMaxCash() {
        return maxCash;
    }

    public void setMaxCash(BigDecimal maxCash) {
        this.maxCash = maxCash;
    }
    public Integer getWalletStatus() {
        return walletStatus;
    }

    public void setWalletStatus(Integer walletStatus) {
        this.walletStatus = walletStatus;
    }
    public String getCashReason() {
        return cashReason;
    }

    public void setCashReason(String cashReason) {
        this.cashReason = cashReason;
    }
    public String getUpdatUser() {
        return updatUser;
    }

    public void setUpdatUser(String updatUser) {
        this.updatUser = updatUser;
    }
    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public void preInsert(){
        super.preInsert();
    }
    @Override
    public void preUpdate(){
        super.preInsert();
    }
    @Override
    public String toString() {
        return "UserWallet{" +
        "id=" + id +
        ", userId=" + userId +
        ", totalProfit=" + totalProfit +
        ", surplusProfit=" + surplusProfit +
        ", cashedMoney=" + cashedMoney +
        ", minCash=" + minCash +
        ", maxCash=" + maxCash +
        ", walletStatus=" + walletStatus +
        ", cashReason=" + cashReason +
        ", createUser=" + createUser +
        ", updatUser=" + updatUser +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", delFlag=" + delFlag +
        ", sysUserId=" + sysUserId +
        "}";
    }
}
